package com.zhentao.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhentao.model.entity.system.SysRoleUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 懒阳阳
* @description 针对表【sys_user_role(用户角色)】的数据库操作Mapper
* @createDate 2025-02-08 14:45:04
* @Entity com.zhentao.domain.SysUserRole
*/
@Mapper
public interface SysUserRoleMapper extends BaseMapper<SysRoleUser> {

    //根据用户的id删除数据
    void deleteByUserId(Long aLong);

    //添加新的关联关系
    void doAssign(@Param("userId") Long userId, @Param("roleId") Long roleId);

    List<String> findSysUserRoleByUserId(Long userId);
}




